<template>
  <div>
    <Modal
        v-model="showModal"
        title="详情"
        :loading="loading"
        @on-ok="asyncOK">
      <p>After you click ok, the dialog box will close in 2 seconds.</p>
    </Modal>
  </div>
</template>
<script>
  export default {
    name: 'modal',
    components: {},
    data () {
      return {
        title: '',
        loading: true,
        showModal: true,
      };
    },
    methods: {
      asyncOK: function () {
        var _this = this;
        _this.showModal = false;
      }
    }
  };
</script>
